package com.woniuxy.common.rabbit.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO: 配置mq消息转换器
 * <P> Date: 2022/3/6:11:28
 * <P> Description:
 */

@Configuration
public class MQConfig {
    /**
        * TODO: 消息转换为json
    **/
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}